import { createRouter, createWebHistory } from 'vue-router'
// import HomeView from '../views/HomeView.vue'
import HomePage from '../components/HomePage.vue'
import tests from '../components/tests.vue'
import Commodity from '../components/Commodity.vue'
import testss1 from '../components/testss1.vue'
import pay from '../components/pay.vue'
import refund from '../components/refund.vue'
import ProductTable from '../components/ProductTable.vue'
import ManagerProductTable from '../components/ManagerProductTable.vue'
import UserCommodity from '../components/UserCommodity.vue'
import UserUnpaid from '../components/UserUnpaid.vue'
import OrderManagement from '../components/OrderManagement.vue'
import UserPaidOrders from '../components/UserPaidOrders.vue'
import UserNotShippedYet from '../components/UserNotShippedYet.vue'
import UserAlreadyShipped from '../components/UserAlreadyShipped.vue'
import ServiceMaintenance from '../components/ServiceMaintenance.vue'
import ShopService from '../components/ShopService.vue'
import UserCenter from '../components/UserCenter.vue'
import ShopCenter from '../components/ShopCenter.vue'
import UserLogin from '../components/UserLogin.vue'
import Report from '../components/Report.vue'
import MarketLogin from '../components/MarketLogin.vue'
import MarketRegister from '../components/MarketRegister.vue'
import Register from '../components/Register.vue'
import ManagerCommodity from '../components/ManagerCommodity.vue'
import ManagerRefundCommodity from '../components/ManagerRefundCommodity.vue'
import ManagerPendingShipment from '../components/ManagerPendingShipment.vue'
import ManagerHome from '../components/ManagerHome.vue'
import ManagerAlreadyShipped from '../components/ManagerAlreadyShipped.vue'
import ManagerSignedFor from '../components/ManagerSignedFor.vue'
import ManagerReturned from '../components/ManagerReturned.vue'
import ManagerShop from '../components/ManagerShop.vue'
import ManagerPendingReviewShop from '../components/ManagerPendingReviewShop.vue'
import ManagerCar from '../components/ManagerCar.vue'
import ManagerNearTermMaintenanceRequired from '../components/ManagerNearTermMaintenanceRequired.vue'
import ManagerReturningGoods from '../components/ManagerReturningGoods.vue'
import ManagerLogin from '@/components/ManagerLogin.vue'


import ShopHome from '../components/ShopHome.vue'
import ShopWaitComment from '../components/ShopWaitComment.vue'
import ShopWaitPay from '../components/ShopWaitPay.vue'
import ShopWaitUse from '../components/ShopWaitUse.vue'
import ShopInUse from '../components/ShopInUse.vue'
import ShopNewOrder from '@/components/ShopNewOrder.vue'
import ShopOrderBingo from '@/components/ShopOrderBingo.vue'
import ShopReport from '@/components/ShopReport.vue'
import ShopComment from '@/components/ShopComment.vue'
import ShopNotice from '@/components/ShopNotice.vue'
import ShopInfo from '@/components/ShopInfo.vue'
import ShopDetail from '@/components/ShopDetail.vue'
import ShopNoticeLook from '@/components/ShopNoticeLook.vue'
import ShopCommodity from '@/components/ShopCommodity.vue'
import ShopReceiptOfGoods from '@/components/ShopReceiptOfGoods.vue'
import ShopServiceManager from '@/components/ShopServiceManager.vue'
import ShopTest from '@/components/ShopTest.vue'








const routes = [
  {
    path: '/shopHome',
    name: 'ShopHome(3)',
    component: ShopHome3,

    redirect: '/shopReport',
    children:[{
      path: '/shopServiceManager',
      name: 'ShopServiceManager',
      component: ShopServiceManager
    },
    {
      path: '/shopTest',
      name: 'ShopTest',
      component: ShopTest
    },
    {
      path: '/shopNewOrder',
      name: 'ShopNewOrder',
      component: ShopNewOrder
    },
    {
      path: '/shopCommodity',
      name: 'ShopCommodity',
      component: ShopCommodity
    },
    {
      path: '/shopReceiptOfGoods',
      name: 'ShopReceiptOfGoods',
      component: ShopReceiptOfGoods
    },
    {
      path: '/shopNoticeLook',
      name: 'ShopNoticeLook',
      component: ShopNoticeLook
    },
    {
      path: '/shopDetail',
      name: 'ShopDetail',
      component: ShopDetail
    },
    {
      path: '/shopInfo',
      name: 'ShopInfo',
      component: ShopInfo
    },
    {
      path: '/shopNotice',
      name: 'ShopNotice',
      component: ShopNotice
    },
    {
      path: '/shopComment',
      name: 'ShopComment',
      component: ShopComment
    },
    {
      path: '/shopReport',
      name: 'ShopReport',
      component: ShopReport
    },
    {
      path: '/shopWaitPay',
      name: 'ShopWaitPay',
      component: ShopWaitPay
    },
    {
      path: '/shopWaitUse',
      name: 'ShopWaitUse',
      component: ShopWaitUse
    },
    {
      path: '/shopInUse',
      name: 'ShopInUse',
      component: ShopInUse
    },
    {
      path: '/shopWaitComment',
      name: 'ShopWaitComment',
      component: ShopWaitComment
    },
    {
      path: '/shopOrderBingo',
      name: 'ShopOrderBingo',
      component: ShopOrderBingo
    },
  ]
  },
  {
    path: '/',
    name: 'UserLogin',
    component: UserLogin
  },
  {
    path: '/about',
    name: 'about',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  },
  {
    path: '/managerlogin',
    name: 'ManagerLogin',
    component: ManagerLogin
  },
  {
    path: '/shopServiceManager',
    name: 'shopServiceManager',
    component: ShopServiceManager
  },
  {
    path: '/homepage',
    name: 'HomePage',
    component: HomePage
  },
  {
    path: '/tests',
    component: tests
  },
  {
    path: '/commodity',
    component: Commodity
  },
  {
    path: '/testss1',
    component: testss1
  },
  {
    path: '/pay',
    component: pay
  },
  {
    path: '/refund',
    component: refund
  },
  {
    path: '/producttable',
    component: ProductTable
  },
  {
    path: '/usercommodity',
    component: UserCommodity
  },
  {
    path: '/userunpaid',
    component: UserUnpaid 
  },
  {
    path: '/ordermanagement',
    component: OrderManagement 
  },
  {
    path: '/userpaidorders',
    component: UserPaidOrders 
  },
  {
    path: '/usernotshippedyet',
    component: UserNotShippedYet 
  },
  {
    path: '/useralreadyshipped',
    component: UserAlreadyShipped 
  },
  {
    path: '/servicemaintenance',
    component: ServiceMaintenance 
  },
  {
    path: '/shopservice',
    component: ShopService 
  },
  {
    path: '/usercenter',
    component: UserCenter 
  },
  {
    path: '/shopcenter',
    component: ShopCenter
  },
  {
    path: '/userlogin',
    component: UserLogin
  },
  {
    path: '/marketlogin',
    component: MarketLogin
  },
  {
    path: '/marketregister',
    component: MarketRegister
  },
  {
    path: '/register',
    component: Register
  },
  {
    path: '/managerhome',
    component: ManagerHome,
    redirect: '/managercommodity',
    children:[
  {
    path: '/managercommodity',
    component: ManagerCommodity
  },
  {
    path: '/managerrefundcommodity',
    component: ManagerRefundCommodity
  },
  {
    path: '/managerpendingshipment',
    component: ManagerPendingShipment
  },
  {
    path: '/managerproducttable',
    component: ManagerProductTable
  },
  {
    path: '/report',
    component: Report
  },
  {
    path: '/manageralreadyshipped',
    component: ManagerAlreadyShipped
  },
  {
    path: '/managerSignedFor',
    component: ManagerSignedFor
  },
  {
    path: '/managerReturned',
    component: ManagerReturned
  },
  {
    path: '/managershop',
    component: ManagerShop
  },
  {
    path: '/managerpendingreviewshop',
    component: ManagerPendingReviewShop
  },
  {
    path: '/managercar',
    component: ManagerCar
  },
  {
    path: '/managerneartermmaintenancerequired',
    component:ManagerNearTermMaintenanceRequired
  },
  {
    path: '/managerreturninggoods',
    component:ManagerReturningGoods
  }

    ]
  },
    {
        path: '/shophome',
        name: 'ShopHome',
        component: ShopHome,
    
        redirect: '/shopReport',
        children:[{
          path: '/shopServiceManager',
          name: 'ShopServiceManager',
          component: ShopServiceManager
        },
        {
          path: '/shopNewOrder',
          name: 'ShopNewOrder',
          component: ShopNewOrder
        },
        {
          path: '/shopCommodity',
          name: 'ShopCommodity',
          component: ShopCommodity
        },
        {
          path: '/shopReceiptOfGoods',
          name: 'ShopReceiptOfGoods',
          component: ShopReceiptOfGoods
        },
        {
          path: '/shopNoticeLook',
          name: 'ShopNoticeLook',
          component: ShopNoticeLook
        },
        {
          path: '/shopDetail',
          name: 'ShopDetail',
          component: ShopDetail
        },
        {
          path: '/shopInfo',
          name: 'ShopInfo',
          component: ShopInfo
        },
        {
          path: '/shopNotice',
          name: 'ShopNotice',
          component: ShopNotice
        },
        {
          path: '/shopComment',
          name: 'ShopComment',
          component: ShopComment
        },
        {
          path: '/shopReport',
          name: 'ShopReport',
          component: ShopReport
        },
        {
          path: '/shopWaitPay',
          name: 'ShopWaitPay',
          component: ShopWaitPay
        },
        {
          path: '/shopWaitUse',
          name: 'ShopWaitUse',
          component: ShopWaitUse
        },
        {
          path: '/shopInUse',
          name: 'ShopInUse',
          component: ShopInUse
        },
        {
          path: '/shopWaitComment',
          name: 'ShopWaitComment',
          component: ShopWaitComment
        },
        {
          path: '/shopOrderBingo',
          name: 'ShopOrderBingo',
          component: ShopOrderBingo
        },
        {
          path: '/shoptest',
          name: 'ShopTest',
          component: ShopTest
        },
    {
      path: '/shopcommodity',
      component: ShopCommodity
    }
      ]
      },
 

  
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
